<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8" />
  <title>Recently used files—Command, MultiItem, and ComboBox</title>
  <style>
    table, th, td {
      border: 1px solid black;
      border-collapse: collapse;
    }
    th, td {
      padding: 5px;
    }
    th {
      font-weight: bold;
    }
  </style>
</head>
<body>
  ## Recently used files—Command, MultiItem, and ComboBox

This sample shows how to implement different styles of custom commands<font face="Verdana" xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53">—a </font>normal button command, a MultiItem command, and a combo box<font face="Verdana" xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53">—</font>to customize ArcGIS Desktop applications. All three types of commands perform the same functionality: listing and opening recently used documents. This sample also shows how to create a custom toolbar and menu with your custom command.   

```
Language:              C#, VB
Subject:               Framework
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5
```

### Resources

* [ArcObjects .NET API Reference online](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm)  
* [Sample Data Download](../../releases)  
* [What's new](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#91cabc68-2271-400a-8ff9-c7fb25108546.htm)  
* [Download the ArcObjects SDK for .Net from MyEsri.com](https://my.esri.com/)  

### Usage
1. Open and compile the sample project in Visual Studio. Set up a debug application if needed.  
1. This sample works in ArcMap, ArcScene, or ArcGlobe. Open any of the applications.  
1. Turn on the Recent Files (C#) or Recent Files (VB) toolbar from the Customize dialog box or toolbar list, depending on the language project you have compiled.  
1. Expand the Recent Files menu to interact with the command and MultiItem command to open any of the recently used documents. You can also open a document in the Recent Files list with the drop-down list tool control. See the following screen shot:  

![Screen shot of the Recent Files list](images/pic1.png)  
Screen shot of the Recent Files list  

#### See Also  
[How to create dynamic menu commands using a MultiItem](http://desktop.arcgis.com/search/?q=How%20to%20create%20dynamic%20menu%20commands%20using%20a%20MultiItem&p=0&language=en&product=arcobjects-sdk-dotnet&version=&n=15&collection=help)  

---------------------------------

#### Licensing  
<table><tr><th> Development licensing </th><th> Deployment licensing </th></tr>
<tr><td> ArcGIS Desktop Basic </td><td> ArcGIS Desktop Basic </td></tr>  
<tr><td> ArcGIS Desktop Standard </td><td> ArcGIS Desktop Standard </td></tr>  
<tr><td> ArcGIS Desktop Advanced </td><td> ArcGIS Desktop Advanced </td></tr>  
</table>
</body>
</html>